package com.TwinBlade.PicturePassword;

import android.content.SharedPreferences;
import android.content.SharedPreferences.Editor;
import android.view.View;
import android.widget.AdapterView;
import android.widget.AdapterView.OnItemSelectedListener;
import android.widget.ArrayAdapter;
import android.widget.Spinner;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;

final class y
  implements AdapterView.OnItemSelectedListener
{
  private y(GesturePreferences paramGesturePreferences)
  {
  }

  public void onItemSelected(AdapterView paramAdapterView, View paramView, int paramInt, long paramLong)
  {
    GesturePreferences.a(this.a).edit().putString("SecondGestureType", GesturePreferences.a(this.a, paramAdapterView.getItemAtPosition(paramInt).toString())).commit();
    GesturePreferences.b(this.a);
    ArrayList localArrayList = new ArrayList();
    Iterator localIterator = GesturePreferences.c(this.a).iterator();
    while (true)
    {
      if (!localIterator.hasNext())
      {
        if (!GesturePreferences.a(this.a, String.valueOf(GesturePreferences.d(this.a).getSelectedItem())).equals("none"))
          localArrayList.remove(String.valueOf(GesturePreferences.d(this.a).getSelectedItem()));
        if (!GesturePreferences.a(this.a, String.valueOf(GesturePreferences.f(this.a).getSelectedItem())).equals("none"))
          localArrayList.remove(String.valueOf(GesturePreferences.f(this.a).getSelectedItem()));
        ArrayAdapter localArrayAdapter = new ArrayAdapter(GesturePreferences.e(this.a), 17367048, localArrayList);
        localArrayAdapter.setDropDownViewResource(17367049);
        GesturePreferences.g(this.a).setAdapter(localArrayAdapter);
        return;
      }
      localArrayList.add(((v)localIterator.next()).a);
    }
  }

  public void onNothingSelected(AdapterView paramAdapterView)
  {
  }
}

/* Location:           D:\Studium\Bachelorarbeit\BA Marcus Wobig\BA\BA\Decompiler\PicturePassword APK\Programm\PicturePassword_dex2jar.jar
 * Qualified Name:     com.TwinBlade.PicturePassword.y
 * JD-Core Version:    0.6.2
 */